package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Daily;
import cn.wolfcode.trip.base.domain.DailyContent;
import cn.wolfcode.trip.base.domain.TravelContent;
import cn.wolfcode.trip.base.query.DailyQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IDailyService {


    void save(Daily daily);

    /**
     * 高级查询
     *
     * @param qo
     * @return
     */
    PageInfo query(DailyQueryObject qo);

    void update(Daily daily);

    void delete(Long id);

    Daily get(Long id);

    List<Daily> selectAll();

    /**
     * 修改状态
     * 发布
     * 拒绝
     *
     * @param daily
     */
    void changeStatus(Daily daily);

    DailyContent getDailyContentById(Long dailyId);

    Integer getDailyStatus(Long userId, Long dailyId);

   
}
